<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>login</title>
  </head>
  <body>
  <c:choose>
      <c:when test="${username == null || username ==''}"><a href="${pageContext.servletContext.contextPath}/webstu/login.jsp">请登录</a></c:when>
      <c:otherwise>
          欢迎${username}<br/>
          <a href="${pageContext.servletContext.contextPath}/webstu/AddStu.jsp">添加学生</a>
          <a href="${pageContext.servletContext.contextPath}/ListStu">查看学生</a>
      </c:otherwise>
  </c:choose>
  </body>
</html>
